﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="vizsgakerdesKezeles.aspx.cs" Inherits="NEMProjectWebApp.Pages.Oktato.vizsgakerdesKezeles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <center>
                <table width="400px">
                    <tr>
                        <td>
                            Tárgy:
                        </td>
                        <td>
                            <asp:DropDownList ID="TargyDropDownList" runat="server" Width="300px" AutoPostBack="True"
                                DataSourceID="SqlDataSource1" DataTextField="TargyNeve" DataValueField="T_ID"
                                OnSelectedIndexChanged="TargyDropDownList_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                                SelectCommand="SELECT [T_ID], [TargyNeve] FROM [Targy] ORDER BY [TargyNeve]">
                            </asp:SqlDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Tárgy vizsgakérdései:
                        </td>
                    </tr>
                </table>
                <table width="400px">
                    <tr>
                        <td rowspan="3">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:ListBox ID="VizsgaKerdesListBox" runat="server" Width="285px" DataSourceID="SqlDataSource2"
                                        DataTextField="Kerdes" DataValueField="VK_ID" AutoPostBack="True" OnSelectedIndexChanged="VizsgaKerdesListBox_SelectedIndexChanged">
                                    </asp:ListBox>
                                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                                        SelectCommand="SELECT [VK_ID], [Kerdes] FROM [VizsgaKerd] WHERE ([TargyID] = @TargyID)">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="TargyDropDownList" Name="TargyID" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:SqlDataSource>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <asp:Button ID="UjBtn" runat="server" OnClick="UjBtn_Click" Text="Új kérdés" 
                                Width="85px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="TorlesBtn" runat="server" OnClick="TorlesBtn_Click" 
                                Text="Törlés" Width="85px" />
                        </td>
                    </tr>
                </table>
                <table width="400px">
                    <tr>
                        <td colspan="2">
                            <asp:RadioButtonList ID="VTulRadioButtonList" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">Public</asp:ListItem>
                                <asp:ListItem Value="0">Only Exam</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Kérdés:<asp:TextBox ID="KerdesTextBox" runat="server" Width="350px"></asp:TextBox>
                            <asp:HiddenField ID="KerdesIdHiddenField" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;&nbsp;&nbsp; 1.válasz:<asp:TextBox ID="V1TextBox" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td rowspan="4">
                            <asp:RadioButtonList ID="HelyesRadioButtonList" runat="server">
                                <asp:ListItem Value="0" Selected="True">Helyes</asp:ListItem>
                                <asp:ListItem Value="1">Helyes</asp:ListItem>
                                <asp:ListItem Value="2">Helyes</asp:ListItem>
                                <asp:ListItem Value="3">Helyes</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;&nbsp;&nbsp; 2.válasz:<asp:TextBox ID="V2TextBox" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;&nbsp;&nbsp; 3.válasz:<asp:TextBox ID="V3TextBox" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;&nbsp;&nbsp; 4.válasz:<asp:TextBox ID="V4TextBox" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Pontszám:
                            <asp:TextBox ID="PszamTextBox" runat="server" Width="45px"></asp:TextBox>
                            Idő a választa:
                            <asp:TextBox ID="IdoTextBox" runat="server" Width="39px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="MentesBtn" runat="server" Text="Mentés" OnClick="MentesBtn_Click" />
                        </td>
                    </tr>
                </table>
            </center>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
